import QtQuick 2.5
import QtQuick.Layouts 1.1

Rectangle
{
    property alias textCtrl: m_text
    property alias inputCtrl: m_input
    property alias textRect: m_textRect
    property alias inputRect: m_inputRect

    color: "transparent"
    ColumnLayout {
        spacing: 0
        anchors.fill: parent
        Rectangle {
            id: m_textRect
            color: "transparent"
            Layout.fillHeight: true
            Layout.fillWidth: true
            Text {
                id: m_text
                anchors.fill: parent
                verticalAlignment: Text.AlignVCenter
            }
        }
        Rectangle {
            id: m_inputRect
            color: "transparent"
            border.width: 1
            border.color: "white"
            Layout.fillHeight: true
            Layout.fillWidth: true
            TextInput {
                id: m_input
                clip: true
                anchors.fill: parent
                verticalAlignment: Text.AlignVCenter
            }
        }
    }
}
